home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 1
/
LIGHT-ROM 1 (Amiga Library Services)(1994).iso
/
ffdisks
/
d939.lha
/
ExtraCmds
/
source_etc.lha
/
src
/
printerror.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-22
|
2KB
|
56 lines
/* --------------------------------- -------
* |\ | | | | | |.| | \| |/ /|\ |||||||
* | | | |/ | |\ |/ |/| |\ |/ | ? ---+--- =<
* | | | | | | | | | | | \qqqqqqqqq/
* --------------------------------- ~~~~~~~~~~~~~~~~
* printerror() - print text associated with the current DOS error code.
* Copyright (C) 1993 Torsten Poulin
*
* This file is part of "Torsten's AmigaDOS Shell Commands" package.
* The package is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* The author can be contacted by s-mail at
* Torsten Poulin
* Banebrinken 99, 2, 77
* DK-2400 Copenhagen NV
* DENMARK
*
* $Id: printerror.c,v 1.2 93/03/01 13:00:04 Torsten Rel $
* $Log: printerror.c,v $
* Revision 1.2 93/03/01 13:00:04 Torsten
* Changed all occurrences of "struct DosBase *" to "struct DosLibrary *"
*
* Revision 1.1 93/03/01 11:02:32 Torsten
* Initial revision
*
*/
#include <exec/types.h>
#include <dos/dos.h>
#include <clib/dos_protos.h>
#ifdef __SASC
#include <pragmas/dos_pragmas.h>
#endif
struct Global {
struct DosLibrary *DOSBase;
};
VOID printerror(UBYTE *header, VOID *global)
{
struct DosLibrary *DOSBase = ((struct Global *) global)->DOSBase;
PrintFault(IoErr(), header);
}